package cn.cuiqi.dynamic.thread.pool.types;

import lombok.*;

import java.io.Serializable;

/**
 * @author: Cuiqi
 * @Description:
 * @Date: 2024/8/2 21:41
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Response<T> implements Serializable {

    private static final long serialVersionUID = 6695383790847783293L;
    
    private String code;
    
    private String info;
    
    private T data;
    
    
    @NoArgsConstructor
    @AllArgsConstructor
    @Getter
    public enum Code{
        
        SUCCESS("000","success"),
        UN_ERROR("001","调用失败"),
        ILLEGAL_PARAMETER("002","参数非法")
        
        ;
        
        private String code;
        
        private String info;
        
        
    }
    
    
}
